package the_second_chapter;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Convert {

	public static void main(String[] args) {
		String s = "";
		System.out.println("请键入要转换的单词：");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			s = br.readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println("转换后的单词为：" + (s.equals(s.toUpperCase()) ? s.toLowerCase() : s.toUpperCase()));
	}
}
